package com.tuanzi.loan.business.service.family;


import com.tuanzi.loan.business.entity.family.CommSysCode;
import com.tuanzi.loan.business.entity.family.LoanAdvert;
import com.tuanzi.loan.core.service.CommonService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.LoanAdvertSearchRequest;
import com.tuanzi.loan.vo.response.family.LoanAdvertSearchResponse;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author Ray 2017/09/21
 */
public interface LoanAdvertService extends CommonService<LoanAdvert, Long> {


	public Integer offline(Long activityId);

	Page<LoanAdvertSearchResponse> list(PageSearcher<LoanAdvertSearchRequest> pageSearcher);

	void logicDelete(Long id);  //逻辑删除

	void changeStatus(Integer id);

	List<CommSysCode> findAdvert();

	void updatePosition(Integer position, Integer id);

	void batchEliminateProduct(List<Long> ids, List<String> excludeProductIds);

	List<LoanAdvert> findByAdvertSpaceAndActivityId(Integer advertSpace, Long activityId);


}
